const state = {
    screenSize: {
        width: window.innerWidth,
        height: window.innerHeight
      }  ,
  typeScreen:500
};

const mutations = {
  SET_SCREENSIZE: (state, view) => {
    state.screenSize = view;
  }
};

const actions = {
    updateScreenSizeAction({ commit }, newSize) {
        commit('SET_SCREENSIZE', newSize);
      }
};
export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
